using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
	[Table("bgm_request_activity_plan"), DataContract]
    public class RequestActivityPlan
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BgmReqActPlanId", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("bgm_req_act_plan_seq", TypeName="int")]
        public int BgmReqActPlanId { get; set; }

		[ForeignKey("BgmReq")]
		[DataMember, Display(Name = "BgmReqId", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("bgm_req_seq", TypeName="int")]
        public Nullable<int> BgmReqId { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.RequestActivityPlanResource))]
        [Column("descr", TypeName="ntext")]
        public string Descr { get; set; }

		[DataMember, Display(Name = "ActMonth1", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month1", TypeName="int")]
        public Nullable<int> ActMonth1 { get; set; }

		[DataMember, Display(Name = "ActMonth2", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month2", TypeName="int")]
        public Nullable<int> ActMonth2 { get; set; }

		[DataMember, Display(Name = "ActMonth3", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month3", TypeName="int")]
        public Nullable<int> ActMonth3 { get; set; }

		[DataMember, Display(Name = "ActMonth4", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month4", TypeName="int")]
        public Nullable<int> ActMonth4 { get; set; }

		[DataMember, Display(Name = "ActMonth5", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month5", TypeName="int")]
        public Nullable<int> ActMonth5 { get; set; }

		[DataMember, Display(Name = "ActMonth6", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month6", TypeName="int")]
        public Nullable<int> ActMonth6 { get; set; }

		[DataMember, Display(Name = "ActMonth7", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month7", TypeName="int")]
        public Nullable<int> ActMonth7 { get; set; }

		[DataMember, Display(Name = "ActMonth8", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month8", TypeName="int")]
        public Nullable<int> ActMonth8 { get; set; }

		[DataMember, Display(Name = "ActMonth9", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month9", TypeName="int")]
        public Nullable<int> ActMonth9 { get; set; }

		[DataMember, Display(Name = "ActMonth10", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month10", TypeName="int")]
        public Nullable<int> ActMonth10 { get; set; }

		[DataMember, Display(Name = "ActMonth11", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month11", TypeName="int")]
        public Nullable<int> ActMonth11 { get; set; }

		[DataMember, Display(Name = "ActMonth12", ResourceType = typeof(Resources.RequestActivityPlanResource))]
		[Column("act_month12", TypeName="int")]
        public Nullable<int> ActMonth12 { get; set; }

        [DataMember]
        public virtual Request BgmReq { get; set; }



        #region RecordStatus

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("record_status", TypeName="ntext")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("created_by", TypeName="int")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("created_when", TypeName="datetime2")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("updated_by", TypeName="int")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("updated_when", TypeName="datetime2")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion


    }
}